﻿@using BLL.Enums
@{
    if (!ViewData.ContainsKey("MenuActive")){
        ViewData["MenuActive"] = (int)Menu.Bemutatkozas;
    }
    
    Dictionary<int, List<string>> menu = new Dictionary<int, List<string>>();
    menu.Add((int)Menu.Bemutatkozas, new List<string> {"Bemutatkozás","Index","Home" });
    menu.Add((int)Menu.Challengers, new List<string> { "Challengers", "Challengers", "Home" });
    menu.Add((int)Menu.Challenges, new List<string> { "Challenges", "Challenges", "Home" });
    menu.Add((int)Menu.Hirek, new List<string> { "Hírek", "News", "Home" });
}
<div id="navigation">
	<ul>
        @foreach (var menuItem in menu)
        {
            var active = "";
            if (menuItem.Key == (int)ViewData["MenuActive"])
            {
                active = "class = active";
            }
            <li @active>@Html.ActionLink(menuItem.Value[0], menuItem.Value[1], menuItem.Value[2])</li>  
        }
	</ul>
</div>